const colors = ['#409EFF', '#67C23A', '#E6A23C'];
module.exports = {
  grid: {
    height: 100,
    left: '10%',
    right: '10%',
    top: 10
  },
  xAxis: {
    type: 'category',
    data: ['大风', '雷暴', '冰雹'],
    boundaryGap: true,
    axisLine: {
      lineStyle: {
        color: '#FFFFFF'
      },
    }
  },
  yAxis: {
    type: 'value',
    axisLine: {
      lineStyle: {
        color: '#FFFFFF'
      },
    }
  },
  series: [
    {
      data: [15, 7, 2],
      type: 'bar',
      colorBy: 'data',
      itemStyle: {
        normal: {
          label: {
            show: true, //开启显示数值
            textStyle: {
              color: '#FFFFFF', //字体颜色
              fontSize: 14 //字体大小
            }
          }
        }
      }
    }
  ],
  color: colors
};
